-- GENERATED SPELL FOR [Shattered Hand Acolyte] --


function spell0_19415(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(11642,pUnit)
pUnit:RegisterEvent('Sorts_19415', 3500, 1)
end

function spell1_19415(pUnit, Event) --@Mind Flay,n/a--
pUnit:FullCastSpellOnTarget(16568,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19415', 3000, 1)
end

function spell2_19415(pUnit, Event) --@Power Word: Fortitude,n/a--
pUnit:FullCastSpellOnTarget(13864,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19415', 550, 1)
end

function spell3_19415(pUnit, Event) --@Soul Burden,n/a--
pUnit:FullCastSpellOnTarget(38879,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19415', 618, 1)
end

function Sorts_19415(pUnit, Event)
local choix_sorts_19415 = math.random(0, 3)
if choix_sorts_19415 == 0 then
pUnit:RegisterEvent('spell0_19415', 1, 1)
end
if choix_sorts_19415 == 1 then
pUnit:RegisterEvent('spell1_19415', 1, 1)
end
if choix_sorts_19415 == 2 then
pUnit:RegisterEvent('spell2_19415', 1, 1)
end
if choix_sorts_19415 == 3 then
pUnit:RegisterEvent('spell3_19415', 1, 1)
end
end

function mob19415_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19415', math.random(1500, 3000), 1)
end

function mob19415_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19415_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19415_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19415, 1, 'mob19415_Action')
RegisterUnitEvent(19415, 2, 'mob19415_Leave')
RegisterUnitEvent(19415, 3, 'mob19415_Kill')
RegisterUnitEvent(19415, 4, 'mob19415_Die')
